package csel.controller.commands;

import csel.model.GameCommand;
import csel.model.Model;
import csel.model.entity.PlayerCharacter;

public class LeaveVehicleCommand implements GameCommand
{
	private Model model;
	
	public LeaveVehicleCommand(Model model)
	{
		this.model = model;
	}
	
	public void execute()
	{
		PlayerCharacter pc = model.getPlayerCharacter();
		
		if (pc.getVehicle() != null)
			pc.getOut();
	}

}
